package com.hlbspringcloud.graphqldemo.dao;

import com.hlbspringcloud.graphqldemo.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * TODO
 *
 * @author huangxiansheng
 * @date 2021/1/12 2:02 下午
 */
@Mapper
public interface UserMapper {
    User getUserById(String id);

    User getUserByNickname(String nickname);

    List<User> listUsers();

    void addUser(User user);

    void deleteUser(String id);

    void updateUser(User user);
}
